<!-- HTML header for doxygen 1.8.8-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <!-- For Mobile Devices -->
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
        <meta name="generator" content="Doxygen 1.8.18"/>
        <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
        <title>HElib: helib::Cmodulus Class Reference</title>
        <!--<link href="tabs.css" rel="stylesheet" type="text/css"/>-->
        <script type="text/javascript" src="dynsections.js"></script>
        <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
        <link href="doxygen.css" rel="stylesheet" type="text/css" />
        <link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
        <link href='https://fonts.googleapis.com/css?family=Roboto+Slab' rel='stylesheet' type='text/css'>
		<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;1,700&family=Merriweather&family=Merriweather+Sans&family=Open+Sans&family=Poppins:ital@1&family=Roboto:ital,wght@0,400;1,300;1,900&display=swap" rel="stylesheet"> 
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
        <link href="jquery.smartmenus.bootstrap.css" rel="stylesheet">
        <script type="text/javascript" src="jquery.smartmenus.js"></script>
        <!-- SmartMenus jQuery Bootstrap Addon -->
        <script type="text/javascript" src="jquery.smartmenus.bootstrap.js"></script>
        <!-- SmartMenus jQuery plugin -->
    </head>
    <body style="font-family: 'Merriweather', serif;">
        <nav class="navbar navbar-default" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <a class="navbar-brand">HElib Implementing Homomorphic Encryption</a>
                </div>
            </div>
        </nav>
        <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
            <div class="content" id="content">
                <div class="container">
                    <div class="row">
                        <div class="col-sm-12 panel " style="padding-bottom: 15px;">
                            <div style="margin-bottom: 15px;">
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacehelib.html">helib</a></li><li class="navelem"><a class="el" href="classhelib_1_1_cmodulus.html">Cmodulus</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="classhelib_1_1_cmodulus-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">helib::Cmodulus Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Provides FFT and iFFT routines modulo a single-precision prime.  
 <a href="classhelib_1_1_cmodulus.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_c_modulus_8h_source.html">CModulus.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:afbc988779d001451f2c8835d83774cd2"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_cmodulus.html#afbc988779d001451f2c8835d83774cd2">Cmodulus</a> ()</td></tr>
<tr class="memdesc:afbc988779d001451f2c8835d83774cd2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor.  <a href="classhelib_1_1_cmodulus.html#afbc988779d001451f2c8835d83774cd2">More...</a><br /></td></tr>
<tr class="separator:afbc988779d001451f2c8835d83774cd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42dedd9c230aa0c30a8e6174f39a8f96"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_cmodulus.html#a42dedd9c230aa0c30a8e6174f39a8f96">Cmodulus</a> (const <a class="el" href="classhelib_1_1_cmodulus.html">Cmodulus</a> &amp;other)</td></tr>
<tr class="separator:a42dedd9c230aa0c30a8e6174f39a8f96"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1312936041fa6f43cb7faa11a36575ba"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_cmodulus.html#a1312936041fa6f43cb7faa11a36575ba">Cmodulus</a> (const <a class="el" href="classhelib_1_1_p_algebra.html">PAlgebra</a> &amp;zms, long qq, long rt)</td></tr>
<tr class="memdesc:a1312936041fa6f43cb7faa11a36575ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="classhelib_1_1_cmodulus.html#a1312936041fa6f43cb7faa11a36575ba">More...</a><br /></td></tr>
<tr class="separator:a1312936041fa6f43cb7faa11a36575ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8974d70406beb965178205865708a9fa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhelib_1_1_cmodulus.html">Cmodulus</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_cmodulus.html#a8974d70406beb965178205865708a9fa">operator=</a> (const <a class="el" href="classhelib_1_1_cmodulus.html">Cmodulus</a> &amp;other)</td></tr>
<tr class="memdesc:a8974d70406beb965178205865708a9fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy assignment operator.  <a href="classhelib_1_1_cmodulus.html#a8974d70406beb965178205865708a9fa">More...</a><br /></td></tr>
<tr class="separator:a8974d70406beb965178205865708a9fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af389a07cb998891d1fe49bcbda677055"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classhelib_1_1_p_algebra.html">PAlgebra</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_cmodulus.html#af389a07cb998891d1fe49bcbda677055">getZMStar</a> () const</td></tr>
<tr class="separator:af389a07cb998891d1fe49bcbda677055"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8b176aec7babca5bb5037e641045e20"><td class="memItemLeft" align="right" valign="top">unsigned long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_cmodulus.html#ab8b176aec7babca5bb5037e641045e20">getM</a> () const</td></tr>
<tr class="separator:ab8b176aec7babca5bb5037e641045e20"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a168e5658960ea94da093f26c398c3244"><td class="memItemLeft" align="right" valign="top">unsigned long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_cmodulus.html#a168e5658960ea94da093f26c398c3244">getPhiM</a> () const</td></tr>
<tr class="separator:a168e5658960ea94da093f26c398c3244"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48c891eb43ab3090b6374d9542f4b132"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_cmodulus.html#a48c891eb43ab3090b6374d9542f4b132">getQ</a> () const</td></tr>
<tr class="separator:a48c891eb43ab3090b6374d9542f4b132"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef48dd4ed896cdb3e04d86127a17d7c7"><td class="memItemLeft" align="right" valign="top">NTL::mulmod_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_cmodulus.html#aef48dd4ed896cdb3e04d86127a17d7c7">getQInv</a> () const</td></tr>
<tr class="separator:aef48dd4ed896cdb3e04d86127a17d7c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa374c727756eb1aa2f9969c170f092dc"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_cmodulus.html#aa374c727756eb1aa2f9969c170f092dc">getRoot</a> () const</td></tr>
<tr class="separator:aa374c727756eb1aa2f9969c170f092dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a36c934bf2a15b4b33c908fb716d136bc"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classhelib_1_1zz__p_x_modulus1.html">zz_pXModulus1</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_cmodulus.html#a36c934bf2a15b4b33c908fb716d136bc">getPhimX</a> () const</td></tr>
<tr class="separator:a36c934bf2a15b4b33c908fb716d136bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ddcc336786feec724a045fa76a8ec82"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_cmodulus.html#a9ddcc336786feec724a045fa76a8ec82">restoreModulus</a> () const</td></tr>
<tr class="memdesc:a9ddcc336786feec724a045fa76a8ec82"><td class="mdescLeft">&#160;</td><td class="mdescRight">Restore <a class="el" href="namespace_n_t_l.html">NTL</a>'s current modulus.  <a href="classhelib_1_1_cmodulus.html#a9ddcc336786feec724a045fa76a8ec82">More...</a><br /></td></tr>
<tr class="separator:a9ddcc336786feec724a045fa76a8ec82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c8738c875fcb72a9423a0e48879ed39"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_cmodulus.html#a8c8738c875fcb72a9423a0e48879ed39">FFT</a> (NTL::vec_long &amp;y, const NTL::ZZX &amp;x) const</td></tr>
<tr class="separator:a8c8738c875fcb72a9423a0e48879ed39"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a35c116e2381e673e7460b947358ef783"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_cmodulus.html#a35c116e2381e673e7460b947358ef783">FFT</a> (NTL::vec_long &amp;y, const <a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &amp;x) const</td></tr>
<tr class="separator:a35c116e2381e673e7460b947358ef783"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6fa180f90681682ebaaec54e356e2ff4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_cmodulus.html#a6fa180f90681682ebaaec54e356e2ff4">FFT_aux</a> (NTL::vec_long &amp;y, NTL::zz_pX &amp;tmp) const</td></tr>
<tr class="separator:a6fa180f90681682ebaaec54e356e2ff4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62cf7fc60c4f8d106b0dd73cede44f5f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_cmodulus.html#a62cf7fc60c4f8d106b0dd73cede44f5f">iFFT</a> (NTL::zz_pX &amp;x, const NTL::vec_long &amp;y) const</td></tr>
<tr class="separator:a62cf7fc60c4f8d106b0dd73cede44f5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:aafe116f6127fdf02e971b3fbf003a6ed"><td class="memItemLeft" align="right" valign="top">static NTL::zz_pX &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_cmodulus.html#aafe116f6127fdf02e971b3fbf003a6ed">getScratch_zz_pX</a> ()</td></tr>
<tr class="separator:aafe116f6127fdf02e971b3fbf003a6ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acbe3c6b5fa0f9664a8893641c167cbcb"><td class="memItemLeft" align="right" valign="top">static NTL::Vec&lt; long &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_cmodulus.html#acbe3c6b5fa0f9664a8893641c167cbcb">getScratch_vec_long</a> ()</td></tr>
<tr class="separator:acbe3c6b5fa0f9664a8893641c167cbcb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a04b35350474f80a9aef3c39ad771421d"><td class="memItemLeft" align="right" valign="top">static NTL::fftRep &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_cmodulus.html#a04b35350474f80a9aef3c39ad771421d">getScratch_fftRep</a> (long k)</td></tr>
<tr class="separator:a04b35350474f80a9aef3c39ad771421d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Provides FFT and iFFT routines modulo a single-precision prime. </p>
<p>On initialization, it initializes <a class="el" href="namespace_n_t_l.html">NTL</a>'s zz_pContext for this q and computes a 2m-th root of unity r mod q and also r^{-1} mod q. Thereafter this class provides FFT and iFFT routines that converts between time &amp; frequency domains. Some tables are computed the first time that each directions is called, which are then used in subsequent computations.</p>
<p>The "time domain" polynomials are represented as ZZX, which are reduced modulo Phi_m(X). The "frequency domain" are just vectors of integers (vec_long), that store only the evaluation in primitive m-th roots of unity. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="afbc988779d001451f2c8835d83774cd2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afbc988779d001451f2c8835d83774cd2">&#9670;&nbsp;</a></span>Cmodulus() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">helib::Cmodulus::Cmodulus </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Default constructor. </p>

</div>
</div>
<a id="a42dedd9c230aa0c30a8e6174f39a8f96"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a42dedd9c230aa0c30a8e6174f39a8f96">&#9670;&nbsp;</a></span>Cmodulus() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">helib::Cmodulus::Cmodulus </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_cmodulus.html">Cmodulus</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a1312936041fa6f43cb7faa11a36575ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1312936041fa6f43cb7faa11a36575ba">&#9670;&nbsp;</a></span>Cmodulus() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">helib::Cmodulus::Cmodulus </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_p_algebra.html">PAlgebra</a> &amp;&#160;</td>
          <td class="paramname"><em>zms</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>qq</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>rt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor. </p>
<dl class="section note"><dt>Note</dt><dd>Specify m and q, and optionally also the root if q == 0, then the current context is used </dd></dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a8c8738c875fcb72a9423a0e48879ed39"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8c8738c875fcb72a9423a0e48879ed39">&#9670;&nbsp;</a></span>FFT() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void helib::Cmodulus::FFT </td>
          <td>(</td>
          <td class="paramtype">NTL::vec_long &amp;&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const NTL::ZZX &amp;&#160;</td>
          <td class="paramname"><em>x</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a35c116e2381e673e7460b947358ef783"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a35c116e2381e673e7460b947358ef783">&#9670;&nbsp;</a></span>FFT() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void helib::Cmodulus::FFT </td>
          <td>(</td>
          <td class="paramtype">NTL::vec_long &amp;&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &amp;&#160;</td>
          <td class="paramname"><em>x</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a6fa180f90681682ebaaec54e356e2ff4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6fa180f90681682ebaaec54e356e2ff4">&#9670;&nbsp;</a></span>FFT_aux()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void helib::Cmodulus::FFT_aux </td>
          <td>(</td>
          <td class="paramtype">NTL::vec_long &amp;&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">NTL::zz_pX &amp;&#160;</td>
          <td class="paramname"><em>tmp</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ab8b176aec7babca5bb5037e641045e20"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab8b176aec7babca5bb5037e641045e20">&#9670;&nbsp;</a></span>getM()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">unsigned long helib::Cmodulus::getM </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a168e5658960ea94da093f26c398c3244"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a168e5658960ea94da093f26c398c3244">&#9670;&nbsp;</a></span>getPhiM()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">unsigned long helib::Cmodulus::getPhiM </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a36c934bf2a15b4b33c908fb716d136bc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a36c934bf2a15b4b33c908fb716d136bc">&#9670;&nbsp;</a></span>getPhimX()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classhelib_1_1zz__p_x_modulus1.html">zz_pXModulus1</a>&amp; helib::Cmodulus::getPhimX </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a48c891eb43ab3090b6374d9542f4b132"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a48c891eb43ab3090b6374d9542f4b132">&#9670;&nbsp;</a></span>getQ()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long helib::Cmodulus::getQ </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="aef48dd4ed896cdb3e04d86127a17d7c7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef48dd4ed896cdb3e04d86127a17d7c7">&#9670;&nbsp;</a></span>getQInv()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">NTL::mulmod_t helib::Cmodulus::getQInv </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="aa374c727756eb1aa2f9969c170f092dc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa374c727756eb1aa2f9969c170f092dc">&#9670;&nbsp;</a></span>getRoot()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long helib::Cmodulus::getRoot </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a04b35350474f80a9aef3c39ad771421d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a04b35350474f80a9aef3c39ad771421d">&#9670;&nbsp;</a></span>getScratch_fftRep()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">NTL::fftRep &amp; helib::Cmodulus::getScratch_fftRep </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>k</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="acbe3c6b5fa0f9664a8893641c167cbcb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acbe3c6b5fa0f9664a8893641c167cbcb">&#9670;&nbsp;</a></span>getScratch_vec_long()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">NTL::Vec&lt; long &gt; &amp; helib::Cmodulus::getScratch_vec_long </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="aafe116f6127fdf02e971b3fbf003a6ed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aafe116f6127fdf02e971b3fbf003a6ed">&#9670;&nbsp;</a></span>getScratch_zz_pX()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">NTL::zz_pX &amp; helib::Cmodulus::getScratch_zz_pX </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="af389a07cb998891d1fe49bcbda677055"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af389a07cb998891d1fe49bcbda677055">&#9670;&nbsp;</a></span>getZMStar()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classhelib_1_1_p_algebra.html">PAlgebra</a>&amp; helib::Cmodulus::getZMStar </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a62cf7fc60c4f8d106b0dd73cede44f5f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a62cf7fc60c4f8d106b0dd73cede44f5f">&#9670;&nbsp;</a></span>iFFT()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void helib::Cmodulus::iFFT </td>
          <td>(</td>
          <td class="paramtype">NTL::zz_pX &amp;&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const NTL::vec_long &amp;&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a8974d70406beb965178205865708a9fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8974d70406beb965178205865708a9fa">&#9670;&nbsp;</a></span>operator=()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_cmodulus.html">Cmodulus</a> &amp; helib::Cmodulus::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_cmodulus.html">Cmodulus</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Copy assignment operator. </p>

</div>
</div>
<a id="a9ddcc336786feec724a045fa76a8ec82"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9ddcc336786feec724a045fa76a8ec82">&#9670;&nbsp;</a></span>restoreModulus()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void helib::Cmodulus::restoreModulus </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Restore <a class="el" href="namespace_n_t_l.html">NTL</a>'s current modulus. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>/HElib/include/helib/<a class="el" href="_c_modulus_8h_source.html">CModulus.h</a></li>
<li>/HElib/src/<a class="el" href="_c_modulus_8cpp.html">CModulus.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.8-->
<!-- start footer part -->
</div>
</div>
</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
        <script type="text/javascript" src="doxy-boot.js"></script>
</html>
